package com.fan.jicheng.homework;

public class Vegetables extends   Food{
    public Vegetables() {
        double   z=super.getYingYangZhi();
        double   x=z*0.7;
        super.setYingYangZhi(x);
    }

    @Override
    public String getName() {
        System.out.println("其名字为蔬菜和水果");
        return   "其名字为蔬菜和水果";
    }
}
